/**
 * Created by ZQZQQD on 2017/3/9.
 */
$(function(){
    function selectbytype(){
        var infoId=localStorage.getItem('inforId');
        var phone=localStorage.getItem('user');
        var data={
            'type':infoId,
            'phone':phone
        };
        util.ajax('messageselectbytype',data,selectbytypeHander);
    }
    function selectbytypeHander(data){
        var html="";
      for(var i in data.data){
        var item=data.data[i];
        html+='<li class=" mui-media">'+
            '<div class="item-title">'+ item.title+'</div>'+
              '<div class="item-detail">'+ item.content+ '</div>'+
              '</li>'
      }
      $('.mui-table-view').html(html);
    }
    selectbytype();
});